package com.tmpt.utils;

import java.util.ResourceBundle;

//从配置文件中获得配置信息
public class LimitConfiguration {
	private static Object lock = new Object();
	private static LimitConfiguration config = null;
	private static ResourceBundle rb = null;
	private static final String CONFIG_FILE = "limitation";
	
	private LimitConfiguration() {
		rb = ResourceBundle.getBundle(CONFIG_FILE);
	}
	public static LimitConfiguration getInstance() {
		synchronized(lock) {
			if(null == config) {
				config = new LimitConfiguration();
			}
		}
		return (config);
	}
	public String getValue(String key) {
		return (rb.getString(key));
	}
}